package com.penghe.www.httpprocessor

import android.app.Application
import com.penghe.www.httplibrary.HttpHelper
import com.penghe.www.httplibrary.NoHttpProcessor
import com.penghe.www.httplibrary.VolleyProcessor
import com.yanzhenjie.nohttp.NoHttp

/**
 * Created by pengh on 2017/5/29.
 * Application
 */

class MyApplication:Application(){
    override fun onCreate() {
        super.onCreate()
        NoHttp.initialize(this)
//        HttpHelper.init(VolleyProcessor(this))
        HttpHelper.init(NoHttpProcessor())
    }
}